<?php
class Mcombos extends Model{
    var $grado="grado";
    function Mcombos(){
        parent::Model();
    }
    function getGrado(){
        
        $query="select *from $this->grado ";
        $consulta=$this->db->query($query)->result();
        $opcion[""]="";
        foreach ($consulta as $value) {
           $opcion[$value->idgrado]=$value->nombreGrado;

        }
        return $opcion;
    }
    

}

?>
